package com.cssy.yd.logic.dao;

import com.cssy.yd.logic.entity.LogicOtherOutwhDO;
import com.plat.helper.SearchConditions;

import java.util.List;
import org.springframework.dao.DataAccessException;

/**
 * 数据访问对象接口
 * @since 2013-05-23
 */
public interface LogicOtherOutwhDAO {

    /**
     * 插入数据
     * @param logicOtherOutwhDO
     * @return 插入数据的主键
     */
    public String insertLogicOtherOutwhDO(LogicOtherOutwhDO logicOtherOutwhDO) throws DataAccessException;

    /**
     * 统计记录数
     * @param logicOtherOutwhDO
     * @return 查出的记录数
     */
    public Integer countLogicOtherOutwhDOByExample(LogicOtherOutwhDO logicOtherOutwhDO) throws DataAccessException;

    /**
     * 更新记录
     * @param logicOtherOutwhDO
     * @return 受影响的行数
     */
    public Integer updateLogicOtherOutwhDO(LogicOtherOutwhDO logicOtherOutwhDO) throws DataAccessException;

    /**
     * 获取对象列表
     * @param logicOtherOutwhDO
     * @return 对象列表
     */
    public List<LogicOtherOutwhDO> findListByExample(LogicOtherOutwhDO logicOtherOutwhDO) throws DataAccessException;

    /**
     * 根据主键获取logicOtherOutwhDO
     * @param id
     * @return logicOtherOutwhDO
     */
    public LogicOtherOutwhDO findLogicOtherOutwhDOByPrimaryKey(String id) throws DataAccessException;

    /**
     * 删除记录
     * @param id
     * @return 受影响的行数
     */
    public Integer deleteLogicOtherOutwhDOByPrimaryKey(String id) throws DataAccessException;

    public List<LogicOtherOutwhDO> find(SearchConditions scs) throws DataAccessException;
    
    public Integer count(SearchConditions scs) throws DataAccessException ; 

}